package com.learn.spring.ioc.way.proxy.jdk.staticProxy;

public class CatProxy implements Animal {
    private Cat cat;

    public CatProxy(Cat cat) {
        this.cat = cat;
    }

    @Override
    public void run() {
        System.out.println("enhance run");
        cat.run();
    }

    @Override
    public void eat() {
        System.out.println("enhance eat");
        cat.eat();
    }
}
